<%@ page language="java" contentType="text/html; charset=gb2312"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/WEB-INF/lib/pager-taglib.jar" prefix="pg"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>查询日志</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/css.css"/>
<script src="<%=request.getContextPath()%>/js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 20px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a:link {
	color: #036; text-decoration:none;
}
a:visited {
	color: #036;text-decoration:none;
}
a:hover {
	color: #F30;text-decoration: underline;
}
-->
</style></head>

<body>

<table width="98%" bordercolor="#CACACA" border="1" align="center"  style="border-collapse:collapse" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#F6F6F6" align="left" valign=""> 
<s:form theme="simple" action="searchLog">
<s:hidden name="serach" />
<table width="98%"  border="0" align="center" cellpadding="0"  class="search" cellspacing="0">
  <tr>
    <td width="8%"><div align="right">操作人：</div></td>
    <td width="18%"><s:textfield name="operator" cssClass="textfield" /></td>
    <td width="10%"><div align="right">被操作对象：</div></td>
    <td width="18%"><s:textfield name="operator2" cssClass="textfield" /></td>
    <td width="10%"><div align="right">操作时间：</div></td>
    <td width="25%">
    <input name="approvlDate1" id="d4311"  value="${approvlDate1}" class="Wdate" readonly="readonly"   style="width:39%;" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'d4312\')}'})"/> &nbsp;到
    <input name="approvlDate2" id="d4312"  value="${approvlDate2}" class="Wdate"  readonly="readonly"  style="width:39%;" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'d4311\')}',maxDate:'2020-10-01'})"/>
	</td>
  </tr>
  
   <tr>
   <td align="center" colspan="6"> <input name="cx" value="查询" class="btn2" type="submit" />
    <input name="qk" value="清空" class="btn2" type="button" onclick="clearForm()"/>
   </td>
  
  </tr>
</table>
</s:form>
</td>
  </tr>
</table>
<div style="margin-top:6px;">
<table width="98%" border="1" align="center" class="list_style" cellspacing="0" cellpadding="0">  
<colgroup>
<col width="6%" />
<col width="6%" />
<col width="10%" />
<col  />
<col />

</colgroup>
 <tr>
    <td colspan="5" bgcolor="#E1EEFE" align="left"><span style="color:#072962">日志查询结果</span></td>
  </tr> 

  <tr>
    <th>操作人</th>
    <th>被操作对象</th>
    <th>操作时间</th>
    <th>操作前内容</th>
    <th>操作后内容</th>
  </tr>
  <s:iterator value="dataList" var="log">
  <tr>
    <td><s:property value="#log.operator"/></td>
    <td><s:property value="#log.operator2"/></td>
    <td><s:date name="#log.operatorTime" format="yyyy-MM-dd HH:mm"/></td>
    <td><s:property value="#log.preContent"/></td>
    <td><s:property value="#log.afterContent"/></td>
  </tr>
  </s:iterator>
</table>
</div>
<table width="99%" height="30" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="center">
	                      <s:if test="null!=dataList && !dataList.isEmpty()">
	                        	<pg:pager items="${pager.items}"
									maxPageItems="${pager.maxPageItems}"
										maxIndexPages="${pager.maxIndexPages}" 
											isOffset="true" index="center" url="searchLog.do"
												export="offset,currentPageNumber=pageNumber" scope="request">
				  				共有 ${pager.items} 条记录,当前第 ${currentPageNumber} 页
						  			<pg:first unless="current">
										<a href="javascript:"	onClick="javascript:ajaxPaginationInvoke('${pageUrl}');return false;">
											<img src="../images/first.gif" width="37" height="15" style="border:0px" /></a>
									</pg:first>
									<pg:prev>
										<a href="javascript:"	onClick="javascript:ajaxPaginationInvoke('${pageUrl}');return false;">
											<img src="../images/back.gif" width="43" height="15" style="border:0px"/></a>
									</pg:prev>
									<pg:pages>
										<% if(currentPageNumber == pageNumber) {%>${pageNumber }<%}else {%>
											<a href="javascript:"
													onClick="javascript:ajaxPaginationInvoke('${pageUrl}');return false;">${pageNumber}</a>
										<%} %>		
									</pg:pages>
									<pg:next >
										<a href="javascript:"	onClick="javascript:ajaxPaginationInvoke('${pageUrl}');return false;">
											<img src="../images/next.gif" width="43" height="15" style="border:0px;" /></a>
									</pg:next>
									<pg:last unless="current" >
										<a href="javascript:"
											onClick="javascript:ajaxPaginationInvoke('${pageUrl}');return false;"><img src="../images/last.gif" width="37" height="15" style="border:0px" />
									</pg:last>
				 			 	</pg:pager>
			 			 	</s:if>
                      </td>
                    </tr>
</table>
<script type="text/javascript">
 function del(id){
 if(confirm('确定删除吗？')){
  window.location.href='delLog.do?id='+id;
 }
}
 function ajaxPaginationInvoke(url){
	 document.forms[0].action=url;
	 document.forms[0].submit();
}
 function clearForm(){
	document.all.operator.value="";
	document.all.operator2.value="";
	document.all.d4311.value="";
	document.all.d4312.value="";

}
</script>
</body>
</html>
    